#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
//void swap(char* arr1, char* arr2)
//{
//	while (*arr1 != '\0')
//	{
//		int a = 0;
//		a = *arr1;
//		*arr1 = *arr2;
//		*arr2 = a;
//		arr1++; arr2++;
//	}
//}

//void swap(char* arr1, char* arr2)
//{
//	char u = *arr1;
//	*arr1 = *arr2;
//	*arr2 =u;
//	if (*arr1 >= 1)
//		swap(arr1+1, arr2+1);
//}
//	
//int main()
//{
//	char arr1[] = "abcdef";
//	char arr2[] = "bcdefg";
//	swap(arr1, arr2);
//	printf("%s\n", arr1);
//	printf("%s\n", arr2);
//}


#include<stdio.h>
void init(int arr[],int size)
{
	int i = 0;
	for ( i = 0; i < size; i++)
		(arr[i]) = 0;
}
void print(int arr[], int size)
{
	int i = 0;
	for (i = 0; i < size; i++)
		printf("%d ",(arr[i]));
	printf("\n");
}

//void reverse(int *arr[], int size)
//{
//	int t = 0;
//	int a = 1;
//	for (int i = 0; i < size/2; i++,a++)
//	{
//		t = arr[i];
//		arr[i] = arr[size - a];
//		arr[size - a] = t;
//	}
//}
void reverse(int* arr[], int size)
{
	int left = 0;
	int right = size - 1;
	int t = 0;
	while (left <= right)
	{
		t = arr[left];
		arr[left] = arr[right];
		arr[right] = t;
		left++;
		right--;
	}
}
int main()
{
	
	int arr[] = {1,5,4,6,78,678,99};
	int size = sizeof(arr) / sizeof(arr[0]);
//	init(arr,size);
	print(arr, size);
	reverse(arr, size);
	print(arr, size);
	return 0;
}